package com.deer.wms.instock.service;

import com.deer.wms.instock.model.Allot.AllotData;
import com.deer.wms.instock.model.Allot.AllotMaster;
import com.deer.wms.instock.model.Allot.AllotMasterCriteria;
import com.deer.wms.intercept.common.data.CurrentUser;
import com.deer.wms.project.root.service.SuperService;

import java.util.List;


/**
 * Created by ll on 2020/03/04.
 */
public interface AllotMasterService extends SuperService<AllotMaster> {

    /**
     * 按条件查询调拨单List
     * @param criteria 查询条件
     * @return List<AllotMaster>
     */
    List<AllotMaster> findList(AllotMasterCriteria criteria);

    /**
     * 新增一条调拨单
     * @param allotData 调拨数据（包括AllotMaster和AllotDetail）
     * @param currentUser 当前用户
     */
    void createAllotMaster(AllotData allotData, CurrentUser currentUser);

    void createAsnBill(AllotData allotData, CurrentUser currentUser);

    void deleteByBillNo(String billNo);

    AllotMaster findBy(String field, String value);
}
